import ajax from "../utils/request";

// 获取所有分类列表
export function getCategoryList(){
  return ajax({
    url: '/pro/categorylist',
  })
}

// 获取某分类下品牌列表
export function getCategoryBrandList(data: {category: string}){
  return ajax({
    url: '/pro/categorybrandlist',
    data
  })
}

// 获取某分类某品牌下的商品列表
export function getCategoryBrandProList(data: {category: string,brand: string}){
  return ajax({
    url: '/pro/categorybrandprolist',
    data
  })
}
